Callbacks

Hi

I have made a method to register custom callbacks. Now you can easily react to events. :)