modify the srun code to accept user specified arguments, and fix the bugs in opt.c