Add changes related to hw 4 and plots and R files