generalized two scripts for use with qsub so that they could be used with different data.