improve jsdoc comments
add docs
add test and docs folder to npmignore