Upgraded Code and Tex