Settings saving and loading
Fix for duplicate keys
Logging improvements