Second commit

Deleted old test files.
Increased code readability.
Improved createXML.php SQL queries.