Added labels for connection/server status, improved functionality and
code cleanliness