fixing c code generator wip, still needs a lot of work