Works in ST3. Uses new pref class for settings (with defaults)

This is untested in ST2 again, but I see no reason for it not to work :+1: