SECOND AMENDMENT TO REVENUE SHARING AND NOTE PURCHASE AGREEMENT AND OMNIBUS AMENDMENT TO DOCUMENTS