Added ability to save and load prefs files to/from disk