Update Readme, to improve example code

Refactored code to use promises chaining for more clarity and less callback hell.
Merge pull request #248 from naman34/patch-1

Update Readme, to improve example code