now compiles and visitor creates elements.
removed visitors and traversing the tree from the root element.