Finished tree construction. Added functionality for printing tree.
Changed things to const that could be made const.