Fixed minor bugs; modified event manager to return whether an inserted event is the head element of queue; fix memory leak from genome and zygotes