fixed minor bug in copy file function, found while testing it.
moved method to extract file name from client into util. also tested it.
filled in some code in client skeleton method.