Transform table to outline tree, tests, docs