commenting out print statement is messing pcb table
added some utility functions

also fixed pcb allocation and initialization