Added documentation comments for each service function.