fix - simplify handling of fields in parser
mod - refactor state switching, more simplification
mod - add state to detect erroneous chars after processing statement / macros for error states / fixes