reorder complex tests; fix line comment regex; start doc detail