modified the the code for the latest version of API, 100% tested and passed in production server
Merge pull request #12 from wcao101/master

modified the the code for the latest version of API, 100% tested and passed examples test in production server