FSM now fires events when entering and exiting states. Added initial irl file.