Changing to read settings from xml file
Converted settings to be loaded from XML file