plot ssavg var vs period and contdist bug remains in outputting figures to proper directory