Renaming, created chat window.
Moved things into a window.
Removed unneeded code.
Better names.