Improved the explanation for templates.
Added details about custom elements.