Added registerDefaults for the two preferences.  Fixed quitting bug