Update to support file passed as first argument

If first argument doesn't exist, prompt for file. If file is passed as first argument, use that as the file.