added initial tree and data stuff, still needs some work