Fixed typo
Worked on the documentation
Reworked the meaning of the diffractionorders parameter
Added beammode parameter
Correctly implemented the beamdiffractionorder parameter to allow selection of any diffraction order.