removed dead code
Added support for external settings and some sample config files