CS: improve code quality

* add proper docblocks
* add sensible type hints
* remove unused variables
* use helper methods to access services from the container
* remove unnecessary method parameters
update section icons on imports, fixes #288