Update README.md

added "architecture" section and code examples for each function