Better documentation for transform_bin
Better documentation for transform_smooth
Make transform_smooth consistent with transform_bin.
Closes #19
Simplify branch_histogram and branch_freqpoly