changed error handling when checking command line options.
Tidied up formatting of usage output.