Add command line arguments for reading filename and controlling extraction