Removed rdata and rhistory and some other chages to plot code