FXRS: Fast X-Ray Spectrum-Simulator Theory and Software Implementation. (26th April 2017)