MASTER ASSIGNMENT, AGREEMENT AND AMENDMENT NO. 2 TO CREDIT AGREEMENT