Cleanup app and mainwindow

Well, to me it would make more sense to name this `create_logger`, since it **creates** one.