Staticified and tidied up the MIDI subsystem
Tidied up the shit show of a main file