added preferences.xml to store user preferences and configuration values
added UI for configuration