merging files.
1) added qt thread and connected signals
2) changed flow of the script
3) fixed wait for new question
4) removed some test code