added code to output a second, truncated graph and other averages graph