Fixed handling of partial message at end of packet

Will create the new message when next packet is received
Some more fixes