         call_state_hooks nextState, "enter" if (oldState is false or nextState isnt oldState) and parents.old.indexOf(nextState) is -1
 
 
-    # event helper function
-    #
+    # ========================================
+    # EVENT helper function
+    # ========================================
+
     current_event = null
 
     check_transition_callbacks = (trans) ->

        obj = options.extend ? {}


    # state helper function
    #
    all_states = {}
    state_hooks = {}


                options.only,
                options.if,
                options.unless,
                (hook or options.action))

    transition_builder.type = 'coffee_state_machine.TransitionHelperFunction'


    # ========================================
    # initialize
    # ========================================

    # call given function within context of state object
    fn.call obj, state_builder, event_builder, transition_builder
