Fixed port creation algorithm
Added comment to fix
Merge pull request #121 from jjacobskind/port_fix

Fixed port creation algorithm