Added optional category_filter (cuisine) into query string for Yelp API, improved error checking, and cleaned up code