ENH: improve residuals section