Fixed the isset on meal options. Added JSON loading of historical data.