Adds a setup script, unit tests, and fixes a bug with "read" stats.

@bradmontgomery This was failing to discover reads for me.  The regex here is very simple; but should be more inclusive without causing problems.