Add update method
Merge pull request #91 from rajthilakmca/0.5

Add update method