Fixed a few syntax errors in M7.pm