Added lib and test files. Updated package.json with dependencies