added initPcb(), freePcb()