Added two additional report formatting tests.
Command exceptions are now caught automatically and a user supplied exception handler can be installed.
Bugfixes and code improvements.
Bug fixes and merge.