Updated for newer versions

I've updated the codebase for newer versions of Matlab, and gotten rid of some of the obsolete cruft.

I use this at work for most of our Matlab-based projects, and I'd be willing to take over maintainer duties for this package.