removed code for window focus, closes #25
implemented autosave feature

- for prefs only for the moment
- entirely uncoupled preference settings from running settings