now runs either GUI or cmdline version depending on if cmdline args are provided