Added socket communications, added interface for message passing systems