added option parsing to client.c; source code compiles correctly but still need to
check that no run-time/logic errors exist