histogram: Shell script functions moved to makefile

The calculation of 1D histograms is now fully maintained by makefiles
thus enhancing transparency and the possibility of parralelization.
histogram: Info about reference files revised