Adding sample code for updating stacks.
Fixing name of environment variable.
Adding sample code for retrieving a stack resource.
Fixing type of object returned.
Adding sample code for retrieving a stack resource event.
Fixing variable name in docblock.
Adding sample code for retrieving a stack's template.
Fixing update object and syntax.
Adding sample code for previewing a stack.