command line & GUI support

Removed scripts dependency on GUI and now supports both command line and
GUI