Added Debugging and fixed preferences to settings

It displays the same thing regardless of the preferences inside, but I have it showing the current settings. When I exit settings, it commits them.