adding ui_mainwindow.h
including specification
some refactoring
refactorings