modify client.c to do a fixed number of IOs, add some comments