Added a simple logger to handle debug information.
Implemented a nice error message if something goes wrong in a bound callback.