Added Debug window, fixed display of chat messages