added residuals analysis plot code for experimentation with lms.