cosmetics.
fix: corrected varModel function.

several bugs. matrices where build wrong, least squares equation was
wrong, submatrices function didn't finish.