WOW! :) lots of improvements!

- fixed bug that did not open a file when -o option used.
- added a check to handle when serial device disconnected.
- improved serial checking in both windows and mac.