Added a simple example showing the minimization of the Rosenbrock function.
Added documentation
Added a maximization flag