Feature/logging, config and refactor of cli/gui wrappers