updating README with instructions for test script
adding code example to README