Diamond Foods shares surged almost 20% yesterday (21 August) after the company said it has reached an agreement to settle a shareholder lawsuit and raised its financial guidance.