Add debug() and info() statements for better state reporting, and s/peer/node/