SECOND AMENDMENT TO Credit agreement AND guaranty AND REVENUE INTEREST FINANCING AGREEMENT