Added file saving; Accidentally started on a little bit more stuff in Preferences.cs before committing, but changes are minimal