Added simple command line error checking