use knitr to build vignette
insert an environment to access OPT
other changes