Command line error checking

Making sure that the command line arguments