adding support for patch method and test coverage for the put method.

closes #48