SMS dit: Non-LTE radiative transfer in the atmosphere