Document new feature

Use JSDoc-style code comments to document the API of the function in the
source code itself, and add a usage example to the project's README.md
file.
Test new functionality

Ensure that the basic functionality is working as we expect.