replace hardcoded code with knitr code chunks
Merge pull request #8 from ncarchedi/master

replace hardcoded code with knitr code chunks