formatted code and finished parsers