changed the way preferences gets saved
Added a save button to Preferences window
debug preferences now get loaded in main menu and will only be saved via the save button in the preferences window