Restructured to use Matlab object set functions.

Instead of implementing my own set method, along with a propertyvalidator
function, I used the features of Matlab objects to automatically verify
properties at set time.  I should have done this originally...