Added RStudio project
Complete documentation using roxygen2

Updated function comments using roxygen2 format. The man (.Rd) files,
and NAMESPACE can be automatically generated using the roxygen2 tools.