Debug features added, changed menu background, warning popup when exiting, popup code fixed and cleaned up.