Histograms by subsection. Funtions properly factored out. x-axis range fixed