First working doc with references.  Done in knitr.