re-organize rmarkdown functions
more work on formats