Added PreferenceManager and WeatherCardsApplication classes