Refactor. print to log.* functions. conf is no longer global. Verified that settings go defaults -> config file -> cli arguments correctly