Fixed typoes and made minor improvements.
Improved responsiveness of midi2.py