Started working on configuration

Feature does not work yet. Planning to add rule and regex templates.