fixed rendering of xrefs
finished prototyping a much more robust implementaiton of numbered cross-references