Add global options object
Use options for help mode
Use options for debug mode
Use options for requesting port number