Added fields and constructor generation to translator