parsing improvements
advances
more changes
parsin tests
fixes, tests
added toCode functions