Exhibit 10.31 AMENDED AND RESTATED CREDIT AGREEMENT dated as of July 24, 1998 and Amended and Restated as of October 22, 1998