corrected errors in balance template files
fused 6 similiar xsl templates into a single one