Add exception pretty-printing to the command-line tool
Correctly handle zero-length messages
new tests, almost done