Checking in functioning code - comments pending

R-Programming Assignment 2 complete
Need to finish all the function annotation and commenting