included a few basic example tests and moved residual plot into Lm