decided to keep one find_candidate_plus_msg function with some values adjusted
added definitions for MIN, MAX to epi.h, use it in epi.c