First AMENDMENT to Amended and Restated credit agreement and first amendment to pledge and security agreement