Fixed issues with looping behavior, incorrect port reporting.
Merge pull request #1 from rlankenau/demo

Fixed issues with looping behavior, incorrect port reporting.