Automated X-ray Diffraction Analysis