need to complete the entries() in ClientThread and add error checking throughout.