MTEX 4.0.1

merge changes for MTEX 4.0.1