Big update to Sweave file