Added new states.txt and parser and fixed compilation issues