FIxed some bugs, MIDI in working