command error creation
error command works
command create message works
receipt command works
removed cmdname from function, added double newline if neither header nor content