massMatrix debugged and tested in massMatrixTest.mdl