Added dependency injection kernel.
Cleaned up the syntax for the dependency injection kernel.