implemented CA module c++ code generator in twedit