Minor changes: tree does not create a new element, attaches to existing one instead. Cleaner nodes.