Updated documentation.
Updated documentation to reflect onclose extra parameters.
Updated the sample.
Merge pull request #5 from Sumo-MBryant/headers

Updated the documentation for include support for headers and onclose parameters