Added routine to plot residuals.
Added residual plots