Added MIDI input to change masks. Moved mask loading to a subwindow, as well as MIDI input selector. Cleaned some more stuff