add update method
Merge pull request #11 from kielni/es-update

add update method