updated p2p.js with more info