update and rename main.R to qsub.R