Improving XRD Analysis with Machine Learning