implemented listener
Merge pull request #9 from stoned7/network

implemented listener