New callback onUpdate added.
Merge pull request #3 from jmcouillard/master

onUpdate callback