add docstring to services module