unit tested the search method, fixed undercursor bug (at end of file).
Added graphical window.