AMENDED AND RESTATED AGREEMENT RELATING TO RETENTION AND NONCOMPETITION AND OTHER COVENANTS