readded the fix for #4, which was accidentally lost in a merge. additionally, capture error in the linear regression model if a metric is thrown out of R due to a singularity causing the summary matrix to simply exclude it, causing an error.