gras: added comments and renamed tmpl args