more work on preferences (not amusing), created singletons for reading data files