binning now outputs probability density, and nbins can be specified from the command line