added library & test
updated documentation
included package.json to publish into npm