Code cleanup, doc comments, caching for Cii::getConfig()