Major rewrite to work in CommonJS style
Bump version to 0.1.0