add beginnings of matlab debugging
slogging through various issues...