clear up doc and remove spurious test code.