The SerialCommunicator class is refactored and the serial port can be passed as a constructor parameter. If the parameter is null, it creates a serialPort from the Configuration settiongs