Implemented graph search. Restructured the application.