Add some docstrings to the file API.