Added modal, upgraded debugging

Modal subject to change depending on need once we use it. Added event
listener debugging options.