Generate code files for different purposes