update README.md with code examples and corredt the test command in package.json