minor fixes and matlab subsections