Restored full compatibility with MADP.

Predicate_manager now also supports Events, which are needed to define Observation Layers in MADP.

Reformatted source according to ANSI for better readability.