Enhances template documentation

Also adds an example using it