Changed Int16 to UInt16 for TCP Port, Modified #region blocks to #if
directives, changes to port input parsing