added client and server files, parsing packets in io loop