Fixing Preferences.
Removing some unused variables.
Refactoring and improving code.
Merge branch 'PlayerPRO5' into PP5-PreferenceRewrite