Got iterative plots and anova working (sort of) in analysis file. Munging works properly now too. Also tidied up a bit.