fixes in command line parameter validation and error messages