Export balanceTags helper

Hi,

I want to insert additional filtering but still want safe tags and balancing.  With filterTags and safeTags, I can insert custom filtering but without the balance.  So I exported a balanceTags function.  While I was there, I cleaned up the documentation a little bit.

There is no functionality change.