doc: add docstrings for private methods