Opens and initializes a COM port