move to npm, improve documentation