Bug fix

Fixed a bug when the congregations variable is empty. Before I was slicing but that causes an error with an empty set.
added visibility and improved  string conversion.