Fixed cluster shared_ptr bug
Needed to be initialized before using; also fixed debug output hang
Cleaned up debug log output