doc: fix docstrings of functions