Added callback functions with parameters
Now it is possible to register a callback function that has an extra parameter that provides a pointer to some data relevant for the callback.
Now it is possible to register a callback function that has an extra parameter that provides a pointer to some data relevant for the callback.