Exhibit 10.1 AMENDED AND RESTATED CREDIT AND SECURITY AGREEMENT