Added comments to the R script file and completed the first draft of the README.