added function and other things

Added function that is used to check for available serial ports
and added code to prevent connections to multiple Serial Ports (now
connect button changes to disconnect button and serial port selection is
disabled when already connected to a port).