Added serialization

Serialization and deserialization of file containing connections