Fixed supervision tree and added  event logging funcitonality.