added history handling
added possibility of time measuring, using ncurses to handle output