Extracted default port to constant. Applying liberal use of 'final'. Use volatile on fields shared between threads.
minor refactor