Updated a docstring
Catch all exceptions by default, and print just the error message

Implemented a switch TESTING that needs to be set to True during
unit testing, so that exceptions are still raised.