Add saving settings

Preferences are saved upon quitting / closing
Also Prefs should have been lazy