Added MidiConnector and improved structure