More work on code generation and improvements to symbols class.