Patched downloadFile to avoid requesting url twice
Added searchFiles method