added getModule() stuff to RunState, this code is missing in GoalProgram