Fixed bug two of the book psuedo code. The original psuedo code would always place the transition action first in the list of actions for a transition that goes to a lower level of the hierarchy. Instead I place the transition action second in the list after the first exit action for the current state.