Simple Qt-based GUI added
Added mode support in GUI, fix for necessity check