Add command line to qt version and clean up warnings

Added the command line with gui to the qt version and cleanded up
additional warnings.