Added more debug info on binning error.  Added some docs.