added update capability
fixed update function to do patch request
Merge pull request #10 from seanpietz/master

Added update function