Now offers the possibility to distinguish funciton value and derivative in the line search