beginning work on implementing eating.
minor reorganization.