Functioning BGFS. Still a problem that alpha becomes very low in some line searches. A hack is in place to ensure convergence, but sometimes this slows the process down.