Preferences

Finishing touches on a basic preferences implementation