Histogram - added plot1.png printout

Added code that printed out the histogram to a plot1.png device.