Update on CONNEG library

Refactorying CONNEG library