List function added

in client.c, list_flag part is not working with strcmp. need to change
to new header structure