Made changes based on mongodb implementation.
Fixed some typos.
Merge branch 'master' of https://github.com/Prad23/myden