Added /api/search and other minor changes