Add preferences dialog, serial port enumeration