changed client interface, added shell script to invoke client and sever