Added config file, updated README.md and coding.