disabled 4251 warnings
Changed max packet size

Fixed IsOutOfBounds to handle unsinged short instead of short