Previous bugs resolved.
Merge pull request #30 from sunnychaudhari/mongokit

resolved the problems resulted from the last merge, which was a hasty and untested merge.