Codegenerator

improved the codegenerator to handle scene transition and further
increased n2n-array