Implemeted search function
Fixed typo