Don't infinite loop if client fails to connect.
Minor: decrease font size.
Minor: comment update
Minor changes, and moving C code to C++
Fix Java syntax.
Time out faster.