added settings module, now stores settings in JSON format