added config service and a bit more

on top of adding the config service, cleaned up the function for getting
next food type (the algorithm it uses is not perfect, but should work
for my simple purpose).