Finsihing logLevel option and refactoring config