Added PID column to each task and fixed some bugs