Add tex files, minor changes R files