added some docs to template-helpers.h