updated knitr and diagnostics file