switched to simplified commonjs style main.js module

commented config and tweaked readme