added switch to program launch. The switch decides whether to start the
GUI (when no args are given) or the terminal (when args are given).