Moved functions to seperate file. Also Extended SimpleXML class for adding Childdata as CData.
Renamed file based on dates.
Optimised error handling, especially if some POST values are not set.