Added documentation and tests to loaders