Inserted basic error checking for missing file argument