added support for command line switches

--headless
--nostop
--norevert