created add_history for save history of search
fixed pep8 notice
logging search log