Added *~ to .gitignore.
Fixes: roles of undefined and removed undefined variable queryTemplates.