write nprocs, and implement pid on guest bsp
small cleanups