Finish draft of linear model comparison code. Still need to debug.