Implemented port selector, program now gets Arduino reset out of the way as soon as previously unselected port is selected.
merging to Master