Removed commented-out code
Fix autoscale-to-manual due to mouse drag in preferences
Remove debugging print statements and correct typo
Add scaling type to preferences
Build preferences before showing
Updated Changes