Exhibit 10(a) MASTER LOAN AGREEMENT dated as of August 1, 1997