Updating template to use closure parameters.
Updating README.md to reflect changes.