updated pcb with boolean for executed;

also put the process state printing into separate method