Updated README.md

Added a full description of how to use the function