Updated Client:
    Fixed getFiles method to read socket correctly.