Functions which don't have grouping information is grouped as Actions

@benglin, please review.
I think we should use project's general code conventions. I will rewrite comments as you proposed.

During implementation of function I tried to make general function. Without using any literals. If it works with you, I will rewrite code as you proposed. Additionally, we shouldn't use global variables. So I will make `defaultGroup` as local variable.