Add missing MIDI commands, simple PWM module and test suite