Update and rename trainfunction.tex to caret-trainfunction.tex