updated to support MongoDB 2.4+
update to fix bug with Nan fields.  not checking for nil
Merge branch 'develop'