cleaned up re-binning of counts into selected energy bins.