Clean up and separate food_analysis functions; now can pass refined analysis foods list around