Fixed compile errors and implemented fuzzy search