Add an option to run with or without UI

@ikeough 

This submission adds an option called gui so that we will have the choice to run with/without UI.