added a PortScanner class to monitor the status of the ports that are
being used.