Created Config and PreferencesDialog classes.