big oversight in generateTree limits corrected.
This should be the official version 2.0.