Fix some errors in module configuration + add support for replica set init and adding