Misc bugfixes

Fix on reference gamma and lambda.
CHECK DESCENT RATE ESTIMATE.