additional Process Table functions

completed work on do_work_index and do_work_pid.