Updated main file with file dialogs and beginnings of thesaurus part