Removes dead code
Removed parser.generator.x calls and fixed to_xml_file function parameters
Updated imports, removed self.generator declarations, removed self.generator parameters from instantiations
Removed self.generator parameters from add_name_collection calls
Replaced generate_tool_id calls with idgen.create_id calls