Friday update

Changed a few lines in a few files. Also created a config file for
linear regression. no major changes. just to avoid changing parameters
between runs. Also changed a few variable names for clarity