fixed the file parser
rewrote the file parser to work consistently;

also found an error with the search results for files;
wired the delete to clear the search index too