Added documentation for dependency injection