moved TagCensus to standard library; various improvements