Fortify command line parsing errors

Nick,

I spent some time tonight fortifying the command line parsing so that if the command line is not formatted properly, a failure occurs.

The last two patches address compiler warnings or code style issues.

Hans