Text this: X-ray Diffraction of Functional Materials