turn off warnings, and print error in distand noprod
added correct punishment variable
a bunch of updates to improve printing
removed square coefficient from regression as per jonathan suggestion