Added code to generate treetable to certain depth with certain amount of max children per parent