function docstrings and reading file data