add argparse; replace bin/client with bin/coca; bug fixes