Added a script to produce the graphs and corrected a mistake in stats script.