Saving XML to file is not working correctly in the simulator and is not required so I commented out the code, and began to impliment singleton