client work
- removed all the scattered socket.settimeout calls and now the call
  is made once (need to remove all the timeout arguments later)
+ added more comments
- removed ifDead method