Eating code fixed and various edits

Eating code fixed and various edits