Added updating for preferences
Merge pull request #58 from tomdepplito/update_preferences

Added updating for preferences