Added port management for networks
Removed unused imports
Merge pull request #97 from shummi/master

Port management for networks