Refactored generateXML.py and renamed files for clarity