development in C generation. some functions/structs renamed