Print out matching subgroups.

The HTML formatting needs a little work, but overall it seems to dig out the
correct matches.

Also change some layout.