minor code reshaping, added README.md
minor code reshaping, added README.md