Ensure that the context function definition is the module export
Add access to the global object
Improve the readme