Added definitions for nbins, xmin and max for histograms