adding a handler to handle errors, and setting it as the default
updating the docs
Merge pull request #3 from TamasBarta/errorhandler

Errorhandler