histogram bin correction
Bins for calculation of 1D histogram did not have integer spacing as one to few bin was used. I don't think this has any effect on the output histograms but needs to be corrected. I've changed it now so there is the correct number of bins and also centred the bins on integer values. The centering is nice but not essential.