much tidying of analysis.Rmd