Update matlab interface

I tried to split the documentation updates and the bug fixes/improvements as best I could. I might still go back and rewrite the commits to better separate the changes, but it might not be worth it.

Bryan