midiogre: Refactoring + dialog that actually works!