Update parser, logic, command parser. Settle undo bugs