improvements in titiQt

Its structure was changed and some errors were repaired