Almost done with first version

c files already being generated
a little type-swapping problem