[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
Does the body need to be set?