Explain template order
Fix typo and rename variable