[ revise ] write comments in English, change the folder in which the tex code is stored, and revise the function for OK button click.