Improve documentation of injector and do cleanup

This cleans up the logic and improves the documentation.
Improve formatting and documentation of Producers.