added support for config options and improved the readme docs