Finished BadConfigFormatException and added log file