Added another exception handling - when you pass only one set of bin edges for a multidimensional vector.  Also I'm worried about cases when you pass nBins as a list.