Updated meal detection algorithm.
Added functions to request ratings using the new api query function.
Updated test algorithm.