Add logging, optional cfg, and fix a missing module name in maratool