finished serial port class for windows