added search function

gzip to php files and added searching support