fixed the get_communities method, really risky, may remove
comments for future work
removing extra iterations in _size_distribution