A generalised algorithm for spectral reconstruction in Compton spectroscopy with corrections for coherent scattering.