Implemented home location, fixed some bugs with the preferences.