Just finished the XYZ to lattice and vice versa coordinate transformations. I haven't tested it yet, though.