Adding preferences panel
Preferences save/restore now working.