added the ability to bin to desired binsize.