added analysis to analyze proportion of variance and updated scripts