AMENDED AND RESTATED MASTER NOTE (REVOLVING)