Sounds like you did really well resisting when you were out. I wouldn't worry too much about what you've eaten, if your medication is affecting you, you may have needed it. i seem to wobble into food more than I'd like but as long as you get back on it and keep going you'll be fine.