add comments, refactor and fix cs issues

- only for pubsub controller and model overview modul