Code tidy and update to test for correct number of parameters for noteOn
and noteOff messages.