Add file output and use argparse