Template sub generator now updates TOC when templates are created