Clean up C++ version

Signed-off-by: Zeklandia <awood5659@gmail.com>