Added code for the charts.  Started output routine