Simplify tab/indenting
Use tail recursion to generate C statements/lists
Fix indentation
Factor out C header stuff
Fail C execution if read statement fails