Documenting the source and adding a module.export for CommonJS useage.