use knitr api to determine figure filenames
Merge pull request #10 from sachsmc/bugfix

use knitr api to determine figure filenames
Merge pull request #11 from sachsmc/master

bug fixes