Cgenerator

This pull request fix CGenerator bugs and adds C-runtime.