Code Clean-up.
Fixed e.printStackTrace()
Preferences bug fixed.