Problem: In zproject_class.gsl error variable is not reset

Solution: Reset error to undefined at each loop iteration