Created code_gen file.

i value increments in large amounts, needs fixing.