Testing with other complex networks. Fixing pointer errors... Now is not working with simple network neither. Be careful