Ready for testing phase III

Implemented ping. Fixed other minor bugs.
TODO: n_client and n_cluster