Made F12 toggle debug. Cleaned up a bit.