fixed indices again and displaying works properly now

(for some definition of "properly" -- it's still not ncurses)