found and fixed some bugs.
Made the multivariableRegression script return some values so they can be looked at afterwords.
fixed test.speed and test.speed.main as discusses in chat.