Updated README.md and modified R script to not be a function, plus added additional comments to the script.
Updated README.md and modified R script to not be a function, plus added additional comments to the script.