added renameXmlFile method, comment edits, update nonSavedChanges only if the parameter value changes