Fix naming in config/log. Add TODOs to mainloop.