added roxygen documentation and exported author_lesson() function