reduced number of events, improved test script, and wrote doc