(messy)
(messy)

added code to cope with the hklref stuf - however if the input set is correctly
indexed against the reference then should ignore the xml, and also if it is
not correctly indexed have to have some fun with the xml parsing as the output
changes - this now appears to work for TS02...

xia2/xia2,xia2/xia2