Added test harness, improved docs.