improved readability of option tests for valid port number and removed unnecessary else clause
removed unused default listen port