improvements to plotting and the addition of an R markdown script.