I have solved my own problem, sorry for any inconvenience. I think all I had to do was pass EmlLoadOptions(). Thanks.
We are revising the examples for any such issues and these will be fixed. Please feel free to write to us if you come across any other issue while working with the API.