added functionallity

When the disconnect button is pressed, the signalDisconnect() method
informs the server about the disconnect before the disconnect() method
closes the socket and the connection. A more detailed description is
added to the methods.