updated docs, added example, added test script