added test script and updated documentation