New settings module implemented
unit tests for settings
api refactor for new settings module