Reorganize setup, DEBUG mode

Reorganized parts of the script, moving some of the initial

xElement setup to methods.

Added a DEBUG variable that will only load certain debug functions if
it’s set to True.

Set up session highlight suppression during script setup

Set up midi suppression — this might need to be re-enabled or removed.

Cleaned up old code that I don’t need to immediately reference any
longer, since I’m not level 2.