Minor improvements to the tgext template