Added formatting of tags in papers, and generating TOC for papers.