Adding README.md, log option for config and formatting some code