Added basic implementation of PreferencesDialog

Fixed other problems involving menu changes. There is still work to be done however because the updated settings need to be used.