cleaned up various stuff, added escape key listener, and redid word count thing