Add proper docstrings for Loader class