SECOND AMENDMENT TO CREDIT AGREEMENT AND AMENDMENTS TO LOAN DOCUMENTS