fix style for C++ code
make indexing more human readable