Text this: Theory of X-Ray diffraction in crystals