Commented the tree generator code

Commented the tree generator code in preparation for submission.