cleaning up unnecessary variables..
untracking ctags file
consolidated socket error handling to send_data and recv_data functions