Add comments to XMap.java