Here's a look at all the details of the long-awaited deal.