Implements the changes discussed in #207
Fixed doctest mistake found in Travis
Merge pull request #208 from Gallopsled/log_error_exception

Implements the changes suggested in #207.