Progress on the Sweave document; integrating the code into the text