fixed typeerror, made sure only adds accepted - treegen
minor odds fix
another minor odds only fix -treegen
fixed type errors - treegen
cleanup -treegen