defined our own error function using existing library functions and removed the
dependency on gsl