Updated with a rmd file and demo input