Added (non-tested) cluster receiving and sending
Changed main to C++ - also non-tested