added missing file log.cpp and added usage of curses in cheetah_manager. This should fix the problem of filling up the terminal cache.