Refactor of error handling and debug output
Better property defaults, no need for constructor
Better default port handling