saving parameters between sessions in GUI

also:
chech_result() function adapted to take xml files