write more in README.md, some code enhancements