client stuff based on old

Edited ack and seq and the counting method
formatted to match server.c output fields and packet struct