Refactor callbacks
Finish callback implementation
Add per function callbacks
Merge remote-tracking branch 'origin/master' into callbacks_new
fix for new interface
Merge pull request #29 from hpicgs/callbacks_new

Callbacks new