fixed path tracking for plaintext output. rewrote plaintext printing in a
non-tail recursive fashion. added "class = local" to output for local tree_path nodes.