add searcher and main code to application
fixing small errors