changed host.c and KVclient.c to use arrays instead of pointers