Improved client

Buttons for connecting and disconnectiong has been added. Sorted
variables and added function to connect to server using its IP and port.