added some lines to allow user to specify serialAddress and also to have every OS automatically try every serial address in case one is not specified by the user.