Fix document creation using put()
Merge pull request #7 from ryanhughes/document-creation-using-put

Fix document creation using put()