Fix return value of parse function
Some more rules in grammar reordered and fixed, reorder code in lib
Fix indentation
Support empty instructions in messages