Added serialization of xml for saving user settings