Globalised the Peer reader/writers as well and made them implement
runnable instead of extending thread