Adds support for TaggedTrees with example.

Adds support for TaggedTrees with example.

Adds braces to if.

Changes example.
Removes unnecessary null check.