formatting changes
avoid building twice
improve docstring
cimport math functions & float macro
option to pass TreeDecorator to dopreduction
remove duplicate punctuation