Basic completion of the tree parser and move it out of "coax" into an appropriate module