added method for saving mesh groups.