Added update function (aka update handler) support
Merge pull request #175 from oliora/master

Added update function (aka update handler) support