Initial commit to convert to CommonJS
Fixing exports