fix missing ':' on first line of decoded output
fix problem with file writing messages not being strings
move metadata generation to its own file
fix copypasta error