Began roxygenizing function documentation.