(cg72)updated treegen.lua for VanessaE

fixed a few things in the code