updates to analysis code regarding histogramming and hadding
added missing