Changed input arguments to opt and added Gaussian noise (there were too many input variables
Slight corrections