Repaired the initialization process on new installation and configured logging so that the output is saved into an external file.