adding some more fields to the templates page
formatting adjustments, removal of illegal chars
parsing and formatting of the stats field