Added initial Preferences.xml file.
Added code for loading the preference file at startup.