updated s2c translator to create a output folder and write classes, global types and the state machine in seperate files