Extracted connecting check and extract file size to methods
Added error and success messages to server
Transfer data of stubbed ls command