List function added

in client.c, list_flag part is not working with strcmp. need to change
to new header structure
Merge pull request #1 from txlife/master

List function added