Fix a bug in the magical steps.
Updated non monotone parameter to 10 iterations.
Redirected logging printing to file if requested in the options.
Set pgnorm to pg0 before testing convergence.