Mod: update code and LaTeX file