Cleaned up code, modified to use blocking sockets because non-blocking were not finding ports that were open.  Todo: find a solution that will find open ports but wont take forever to time out, as the current solution does.