update example code
save fds for each connection
improve test for NewInputPort()
InputPort#Connect returns portConnection