Update README.md

Add function documentation