Update to use CommonJS
Add simple docs