Fixed bugs.
First version of binner with actual binning.