First implementation of search in files

fixed #859

review: @devoncarew