Added documentation to test harness, and cleaned up a little.