serial version now reads in parameters from txt file, except for persistant fscanf bug