modified set_action, generator, to record the function name/ action block
added get_action
modified print.genE to include actions