Making logging and search work again
fixing file handle name
Formatting code according to Google’s Obj-C styling conventions thanks to Clang-Format