modify README.md and add function declaration