updated matlab source -- still before single jar interface