added some documentation to Loader class