Fix source of segfault and stack corrupt, add basic logging for redirects, update print_url_table calls to save unique files for each search