Added output for slope and intercepts in linear fit and populate new array with results for comparison.