Fixed broken programs, updated log_handler class