NMEA device port auto-detection added, refactoring