Fixed some syntax errors in tree.h, only to find that there are more problems.