generate C++ code
minor updates