Removed unused parameter from action_function method.
Documented the action_function method.