Documentation and assert cleanup.