merging of histograms nearly finished, just need to do some error checking and handle missing data