Added docstrings to loader