generate documentation for public functions from docstrings