XRD code now works for disordered structures!