refactor of config system, readme docs update