added check if code from code generation of other type has been done before, fixes #32
merged with diagram generation feature