Add some function comments in action_layer.c (#4858)