removed clear() - huge speed improvement; changed some minor ncurses functions