Add roxygen documentation to function source files