Finished the switchsocket class, minor changes to print the message received from the controller in the switch