added class XYZ and fixed bug in ASDF