Moves msgParse into own lib