added package.json and modified example