updated ClientThread to detect end of messages and parse out
header method/commands