SharedPreferences implemented for Settings

Settings bug unfixed