Updated docs and examples.
oops..reverted unintended change.
Templating: 'for each' is now 'each'. Accessing defined variables is now
with ${var} rather than {$var}.
Updated examples.