Added more documentation to R files.