Added support for userdata in callbacks
Merge pull request #439 from Alek900/master

Added support for userdata in callbacks