Added information about error and saved coefficients for each iteration to the plot and changed the bash script so that it has the function number as parameter and plotting can be done in parallel for all the functions