Various fix for backend().

Move seteval(max) to appropriate place, and cleanup event.h .
Update an log message in eval.c