Fixed typos and added library(knitr)