MASTER RESTRUCTURE AND DEBT EXCHANGE AGREEMENT