Fixed pregel, changed variables names and thread naming
Changed names