added preference type definition classes (PrefType); added pref sanitization