added comments to XMLLoader