Output some debug info for cpu + small fixes