Fix header guard in tree.h
Add tree string parsing and printing functions