fixed variable typo
added search functionality
few fixes