numerous fixes.  made command line parsing complete.  still does not do a complete job.