add cpp file generate option
add comment.
fix cpp file generation error.