never understood how p2p and this might be helpful for the future (and the code is well commented on)
Thanks! Hope it helps you.