Added creation of directory of output histograms if it doesn't exist yet