Added codegen for Enums and an enum example program.