Refactor PreferenceActivity to PreferenceFragment
Format code using project settings by default
Remove outputs in settings. They will be reintroduced later.