error logging now includes stack trace. TODO: better formatting.
stack trace logging is now optional and defaults to off. Refactored so that the default options are visible to clients to help insulate them from future changes.
fied indentation per pull request comment
Merge pull request #67 from BruceBGordon/debugging-fixes

error logging now includes stack trace. TODO: better formatting.