Update and rename main.tex to main.Rnw