Codes for optically thick and hot photoionized media - Radiative transfer and new developments