using lists in function apply_template_row, removed sep
uppdated documentation for render
fixed minor template issues
update