Fixing IO
Adding another generate header
The final stand.

Signed-off-by: tfliu <thomasliu02@gmail.com>