Updated the docs to use a new API that makes the module into an exported function instead of an object.