added x-ray diffraction plane simulation