Cleaned compilation errors
Some bugfixes
Various changes
* Gradient checking
* Basic test on Rosenbrock (fails for now)
* Check for numerical errors in the line search procedure