Refactoring and fixing search
Merge remote-tracking branch 'origin/master'