Added Midi hooks, In and Out, and other tweaks