A little cleanup

Move implmeentation of getEvents to the .cpp file, make getChildren const and
public.