Added initial code for storing and read/writing heterogeneous networks.