added functions and instructions to README.md