Added more logging
Merge pull request #60 from tomdepplito/add_logging_to_preferences

Added more logging