Added documentation for service and factory dependencies.