Added 'reference' in xml attributes and modified attribute names