Reformat messages to fit 78 char limit, add documentation, tests