Implemented search from textbox functionality
Improved the functionality of search function
Updated version and added comments to new code