finished initTask.js, has yet to be tested thoroughly. Added comments and functions to <init>.js, rand.js, set.js, and getTaskSeglen.js