Moved the rest of the graphical code to Inputs, and wrote logging for the socket events