TST run doctests
clarify a comment
handle more errors in 'main' result format