Added docstrings to io module