Fix various doc errors/warnings.