Change gamma, alpha and beta method
Improvement of the optimization method
Improvement of optimization method. Correct abs problem.
Add documentation