Created R script corr.R

Creation of R script to calculate the correlation between values
(corr.R). Successfully submitted online.
Minor corrections to other scripts.
Now all parts of assignment 1 completed successfully.