add module.exports support - fixes #46
code style
1.2.0