Completed outputting of tree

*Still needs to work on formatting
*Still needs to remove unecessary spaces