Added method triggering and Trigger class
Stuff for trigger manager. Moved data to top level.