added ability to run with command line arguments without gui. now suitable for use in scripts