Removing extra tocTemplate.
Heading links should have a name attribute and a correct link.
Merge pull request #6 from GCheung55/master

Fix erroneous toc links and heading links.