reworked how the task tree was built, added a depth value too so the tree tells us how far to indent tasks