Changed all communication to objecct stream
Changed communication to use object stream; edited HClient to merge my code with Xiaohan's changes