make self.modules and self.commands explicit dicts
added a debug print