Added support for custom chat format for each group, bug fixes