transform: add if/then/else
Start generating some crappy code
output header file too

Is this good practice?
tidy the output up a bit