Fix minor logic errors
Ignore config.json