added filter option, only shows matching leaf nodes.

works for both flat and nested schemata.