adding put and post
fmt
error handling
Merge pull request #445 from nikhan/put_post

Put post