added package structure and documentation

using the `devtools` package, I created a package skeleton with the `create` function, then added some roxygen documentation and generated documentation with the `document` function; finally converted the example script to a `.Rmd` file.