Documentation converted to roxygen2

For a quick start to improving the documentation. Also, added RStudio project files -- they do no harm.