Removing non-live and hidden nodes from topic tree, making sure all unused attributes are cleaned, adding more debug info & comments.
"live" removed from the topic tree