Add on_update event Ref #41.
Add on_update in doc.