Documentation and small name change

Changed name of debugutils.go to logutils.go
Added documentation to tree.go and logutils.go