added method to format a message for logging in hl7 parser

also implemented message class instead of argument and response class