The gunfire capped a span of weeks in which the alleged gunman, Eric M. Anderson, 41, of Niles, persistently harassed a woman who had broken up with him in late November, according to court records. Less than a week before he died, Anderson was charged with sending harassing emails to his 39-year-old ex-girlfriend even though police had warned him not to contact her, court records show. He was released on bond after his arrest Sunday, police said.