Bug fixes

Not passing a transport to add_peer and added threading