updated readme.md to include example and functions