Enhancements to Preferences (thanks Hari). minor tweaks.