added search_history and tests
completed class SearchHistory
code cleaning
some more stuff for search
added full search tests
code cleaning