Improved usage of doctest module.  The tests run much faster.
Improved exception handling, including SystemExit
added optional code coverage reporting