Format stack traces nicely. Partial fix for issue #1.