Created a.link.xpointer

Replaced multiple defines with refs