Adding comments and a generator script for templates