upgraded ping and pong

using now threading instead of thread
implemented neighbour list
added a debug configuration in peer.py