Updated code to output complete histogram file using the full max/min points