add README.md and package function