fixed global variable
added package.json with test script
added doc index
dist file