Implemented a callback scheme

Now you can define callbacks to be runned after the principal callback
finished
Merge branch 'develop'