Updates are working for tree,2,2!
Remove compiler warnings
Added consistent update flag. Reformatted.
added debug printing for to_event