Minor bugfix for newline delimited messages. Add a message length parameter to the on_msg_complete call. Add a test for extra whitespace.