Remove package variables, and change the output of DetailedErrorStack to return a string not a slice of strings.