added comments to document loader