Fixed state machine udating and added ability to decide what com port to
connect to for the CommPortConnection