Final sync

code for various histograms