modified readme.md and some functions