Updated with a working version of the tree builder. Need to add in bootstrap to make it look pretty.