Fix search class error
Add licence