adds xref and label info to g-element class of each entity-node, per #150