added public update() method
Merge pull request #18 from j4velin/update

added public update() method