Implemented the Search API with limited test coverage and updated documentation. Also refactored variable names to be more consistent and simple.