Fixed Bug 2040. The peek ahead algorithm no longer creates a stack
overflow. Additionally, the state of the integrator is now completely
preserved.
Fixed to allow spaces in file names.