Added most of the tree creation, added TODO statements