Added Preferences activity. Implemented ViewHolder and fixed some other bugs