Added read binning to binner snippet.
Fixed some bugs, added some useful methods.