cleaning out dos cruft.  can run from command line now.
put Tk dependence in gui function so we can run it through
the command line without having those libraries installed.