Updated README and added example_settings.json
Added tests.
Refactor settings code