added xdat to xyz converter code