Added abstract classes for read and write of networks with interfaces