Added saving variables to Preferences.
Merge branch 'master' of https://github.com/ksallberg/gyrosfest